package com.zed.code.model;

import java.util.ArrayList;
import java.util.List;

public class TConnectorinfoExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public TConnectorinfoExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andConnectoridIsNull() {
            addCriterion("ConnectorID is null");
            return (Criteria) this;
        }

        public Criteria andConnectoridIsNotNull() {
            addCriterion("ConnectorID is not null");
            return (Criteria) this;
        }

        public Criteria andConnectoridEqualTo(String value) {
            addCriterion("ConnectorID =", value, "connectorid");
            return (Criteria) this;
        }

        public Criteria andConnectoridNotEqualTo(String value) {
            addCriterion("ConnectorID <>", value, "connectorid");
            return (Criteria) this;
        }

        public Criteria andConnectoridGreaterThan(String value) {
            addCriterion("ConnectorID >", value, "connectorid");
            return (Criteria) this;
        }

        public Criteria andConnectoridGreaterThanOrEqualTo(String value) {
            addCriterion("ConnectorID >=", value, "connectorid");
            return (Criteria) this;
        }

        public Criteria andConnectoridLessThan(String value) {
            addCriterion("ConnectorID <", value, "connectorid");
            return (Criteria) this;
        }

        public Criteria andConnectoridLessThanOrEqualTo(String value) {
            addCriterion("ConnectorID <=", value, "connectorid");
            return (Criteria) this;
        }

        public Criteria andConnectoridLike(String value) {
            addCriterion("ConnectorID like", value, "connectorid");
            return (Criteria) this;
        }

        public Criteria andConnectoridNotLike(String value) {
            addCriterion("ConnectorID not like", value, "connectorid");
            return (Criteria) this;
        }

        public Criteria andConnectoridIn(List<String> values) {
            addCriterion("ConnectorID in", values, "connectorid");
            return (Criteria) this;
        }

        public Criteria andConnectoridNotIn(List<String> values) {
            addCriterion("ConnectorID not in", values, "connectorid");
            return (Criteria) this;
        }

        public Criteria andConnectoridBetween(String value1, String value2) {
            addCriterion("ConnectorID between", value1, value2, "connectorid");
            return (Criteria) this;
        }

        public Criteria andConnectoridNotBetween(String value1, String value2) {
            addCriterion("ConnectorID not between", value1, value2, "connectorid");
            return (Criteria) this;
        }

        public Criteria andEquipmentidIsNull() {
            addCriterion("EquipmentID is null");
            return (Criteria) this;
        }

        public Criteria andEquipmentidIsNotNull() {
            addCriterion("EquipmentID is not null");
            return (Criteria) this;
        }

        public Criteria andEquipmentidEqualTo(String value) {
            addCriterion("EquipmentID =", value, "equipmentid");
            return (Criteria) this;
        }

        public Criteria andEquipmentidNotEqualTo(String value) {
            addCriterion("EquipmentID <>", value, "equipmentid");
            return (Criteria) this;
        }

        public Criteria andEquipmentidGreaterThan(String value) {
            addCriterion("EquipmentID >", value, "equipmentid");
            return (Criteria) this;
        }

        public Criteria andEquipmentidGreaterThanOrEqualTo(String value) {
            addCriterion("EquipmentID >=", value, "equipmentid");
            return (Criteria) this;
        }

        public Criteria andEquipmentidLessThan(String value) {
            addCriterion("EquipmentID <", value, "equipmentid");
            return (Criteria) this;
        }

        public Criteria andEquipmentidLessThanOrEqualTo(String value) {
            addCriterion("EquipmentID <=", value, "equipmentid");
            return (Criteria) this;
        }

        public Criteria andEquipmentidLike(String value) {
            addCriterion("EquipmentID like", value, "equipmentid");
            return (Criteria) this;
        }

        public Criteria andEquipmentidNotLike(String value) {
            addCriterion("EquipmentID not like", value, "equipmentid");
            return (Criteria) this;
        }

        public Criteria andEquipmentidIn(List<String> values) {
            addCriterion("EquipmentID in", values, "equipmentid");
            return (Criteria) this;
        }

        public Criteria andEquipmentidNotIn(List<String> values) {
            addCriterion("EquipmentID not in", values, "equipmentid");
            return (Criteria) this;
        }

        public Criteria andEquipmentidBetween(String value1, String value2) {
            addCriterion("EquipmentID between", value1, value2, "equipmentid");
            return (Criteria) this;
        }

        public Criteria andEquipmentidNotBetween(String value1, String value2) {
            addCriterion("EquipmentID not between", value1, value2, "equipmentid");
            return (Criteria) this;
        }

        public Criteria andConnectornameIsNull() {
            addCriterion("ConnectorName is null");
            return (Criteria) this;
        }

        public Criteria andConnectornameIsNotNull() {
            addCriterion("ConnectorName is not null");
            return (Criteria) this;
        }

        public Criteria andConnectornameEqualTo(String value) {
            addCriterion("ConnectorName =", value, "connectorname");
            return (Criteria) this;
        }

        public Criteria andConnectornameNotEqualTo(String value) {
            addCriterion("ConnectorName <>", value, "connectorname");
            return (Criteria) this;
        }

        public Criteria andConnectornameGreaterThan(String value) {
            addCriterion("ConnectorName >", value, "connectorname");
            return (Criteria) this;
        }

        public Criteria andConnectornameGreaterThanOrEqualTo(String value) {
            addCriterion("ConnectorName >=", value, "connectorname");
            return (Criteria) this;
        }

        public Criteria andConnectornameLessThan(String value) {
            addCriterion("ConnectorName <", value, "connectorname");
            return (Criteria) this;
        }

        public Criteria andConnectornameLessThanOrEqualTo(String value) {
            addCriterion("ConnectorName <=", value, "connectorname");
            return (Criteria) this;
        }

        public Criteria andConnectornameLike(String value) {
            addCriterion("ConnectorName like", value, "connectorname");
            return (Criteria) this;
        }

        public Criteria andConnectornameNotLike(String value) {
            addCriterion("ConnectorName not like", value, "connectorname");
            return (Criteria) this;
        }

        public Criteria andConnectornameIn(List<String> values) {
            addCriterion("ConnectorName in", values, "connectorname");
            return (Criteria) this;
        }

        public Criteria andConnectornameNotIn(List<String> values) {
            addCriterion("ConnectorName not in", values, "connectorname");
            return (Criteria) this;
        }

        public Criteria andConnectornameBetween(String value1, String value2) {
            addCriterion("ConnectorName between", value1, value2, "connectorname");
            return (Criteria) this;
        }

        public Criteria andConnectornameNotBetween(String value1, String value2) {
            addCriterion("ConnectorName not between", value1, value2, "connectorname");
            return (Criteria) this;
        }

        public Criteria andConnectortypeIsNull() {
            addCriterion("ConnectorType is null");
            return (Criteria) this;
        }

        public Criteria andConnectortypeIsNotNull() {
            addCriterion("ConnectorType is not null");
            return (Criteria) this;
        }

        public Criteria andConnectortypeEqualTo(Integer value) {
            addCriterion("ConnectorType =", value, "connectortype");
            return (Criteria) this;
        }

        public Criteria andConnectortypeNotEqualTo(Integer value) {
            addCriterion("ConnectorType <>", value, "connectortype");
            return (Criteria) this;
        }

        public Criteria andConnectortypeGreaterThan(Integer value) {
            addCriterion("ConnectorType >", value, "connectortype");
            return (Criteria) this;
        }

        public Criteria andConnectortypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("ConnectorType >=", value, "connectortype");
            return (Criteria) this;
        }

        public Criteria andConnectortypeLessThan(Integer value) {
            addCriterion("ConnectorType <", value, "connectortype");
            return (Criteria) this;
        }

        public Criteria andConnectortypeLessThanOrEqualTo(Integer value) {
            addCriterion("ConnectorType <=", value, "connectortype");
            return (Criteria) this;
        }

        public Criteria andConnectortypeIn(List<Integer> values) {
            addCriterion("ConnectorType in", values, "connectortype");
            return (Criteria) this;
        }

        public Criteria andConnectortypeNotIn(List<Integer> values) {
            addCriterion("ConnectorType not in", values, "connectortype");
            return (Criteria) this;
        }

        public Criteria andConnectortypeBetween(Integer value1, Integer value2) {
            addCriterion("ConnectorType between", value1, value2, "connectortype");
            return (Criteria) this;
        }

        public Criteria andConnectortypeNotBetween(Integer value1, Integer value2) {
            addCriterion("ConnectorType not between", value1, value2, "connectortype");
            return (Criteria) this;
        }

        public Criteria andVoltageupperlimitsIsNull() {
            addCriterion("VoltageUpperLimits is null");
            return (Criteria) this;
        }

        public Criteria andVoltageupperlimitsIsNotNull() {
            addCriterion("VoltageUpperLimits is not null");
            return (Criteria) this;
        }

        public Criteria andVoltageupperlimitsEqualTo(Integer value) {
            addCriterion("VoltageUpperLimits =", value, "voltageupperlimits");
            return (Criteria) this;
        }

        public Criteria andVoltageupperlimitsNotEqualTo(Integer value) {
            addCriterion("VoltageUpperLimits <>", value, "voltageupperlimits");
            return (Criteria) this;
        }

        public Criteria andVoltageupperlimitsGreaterThan(Integer value) {
            addCriterion("VoltageUpperLimits >", value, "voltageupperlimits");
            return (Criteria) this;
        }

        public Criteria andVoltageupperlimitsGreaterThanOrEqualTo(Integer value) {
            addCriterion("VoltageUpperLimits >=", value, "voltageupperlimits");
            return (Criteria) this;
        }

        public Criteria andVoltageupperlimitsLessThan(Integer value) {
            addCriterion("VoltageUpperLimits <", value, "voltageupperlimits");
            return (Criteria) this;
        }

        public Criteria andVoltageupperlimitsLessThanOrEqualTo(Integer value) {
            addCriterion("VoltageUpperLimits <=", value, "voltageupperlimits");
            return (Criteria) this;
        }

        public Criteria andVoltageupperlimitsIn(List<Integer> values) {
            addCriterion("VoltageUpperLimits in", values, "voltageupperlimits");
            return (Criteria) this;
        }

        public Criteria andVoltageupperlimitsNotIn(List<Integer> values) {
            addCriterion("VoltageUpperLimits not in", values, "voltageupperlimits");
            return (Criteria) this;
        }

        public Criteria andVoltageupperlimitsBetween(Integer value1, Integer value2) {
            addCriterion("VoltageUpperLimits between", value1, value2, "voltageupperlimits");
            return (Criteria) this;
        }

        public Criteria andVoltageupperlimitsNotBetween(Integer value1, Integer value2) {
            addCriterion("VoltageUpperLimits not between", value1, value2, "voltageupperlimits");
            return (Criteria) this;
        }

        public Criteria andVoltagelowerlimitsIsNull() {
            addCriterion("VoltageLowerLimits is null");
            return (Criteria) this;
        }

        public Criteria andVoltagelowerlimitsIsNotNull() {
            addCriterion("VoltageLowerLimits is not null");
            return (Criteria) this;
        }

        public Criteria andVoltagelowerlimitsEqualTo(Integer value) {
            addCriterion("VoltageLowerLimits =", value, "voltagelowerlimits");
            return (Criteria) this;
        }

        public Criteria andVoltagelowerlimitsNotEqualTo(Integer value) {
            addCriterion("VoltageLowerLimits <>", value, "voltagelowerlimits");
            return (Criteria) this;
        }

        public Criteria andVoltagelowerlimitsGreaterThan(Integer value) {
            addCriterion("VoltageLowerLimits >", value, "voltagelowerlimits");
            return (Criteria) this;
        }

        public Criteria andVoltagelowerlimitsGreaterThanOrEqualTo(Integer value) {
            addCriterion("VoltageLowerLimits >=", value, "voltagelowerlimits");
            return (Criteria) this;
        }

        public Criteria andVoltagelowerlimitsLessThan(Integer value) {
            addCriterion("VoltageLowerLimits <", value, "voltagelowerlimits");
            return (Criteria) this;
        }

        public Criteria andVoltagelowerlimitsLessThanOrEqualTo(Integer value) {
            addCriterion("VoltageLowerLimits <=", value, "voltagelowerlimits");
            return (Criteria) this;
        }

        public Criteria andVoltagelowerlimitsIn(List<Integer> values) {
            addCriterion("VoltageLowerLimits in", values, "voltagelowerlimits");
            return (Criteria) this;
        }

        public Criteria andVoltagelowerlimitsNotIn(List<Integer> values) {
            addCriterion("VoltageLowerLimits not in", values, "voltagelowerlimits");
            return (Criteria) this;
        }

        public Criteria andVoltagelowerlimitsBetween(Integer value1, Integer value2) {
            addCriterion("VoltageLowerLimits between", value1, value2, "voltagelowerlimits");
            return (Criteria) this;
        }

        public Criteria andVoltagelowerlimitsNotBetween(Integer value1, Integer value2) {
            addCriterion("VoltageLowerLimits not between", value1, value2, "voltagelowerlimits");
            return (Criteria) this;
        }

        public Criteria andRatedcurrentIsNull() {
            addCriterion("RatedCurrent is null");
            return (Criteria) this;
        }

        public Criteria andRatedcurrentIsNotNull() {
            addCriterion("RatedCurrent is not null");
            return (Criteria) this;
        }

        public Criteria andRatedcurrentEqualTo(Integer value) {
            addCriterion("RatedCurrent =", value, "ratedcurrent");
            return (Criteria) this;
        }

        public Criteria andRatedcurrentNotEqualTo(Integer value) {
            addCriterion("RatedCurrent <>", value, "ratedcurrent");
            return (Criteria) this;
        }

        public Criteria andRatedcurrentGreaterThan(Integer value) {
            addCriterion("RatedCurrent >", value, "ratedcurrent");
            return (Criteria) this;
        }

        public Criteria andRatedcurrentGreaterThanOrEqualTo(Integer value) {
            addCriterion("RatedCurrent >=", value, "ratedcurrent");
            return (Criteria) this;
        }

        public Criteria andRatedcurrentLessThan(Integer value) {
            addCriterion("RatedCurrent <", value, "ratedcurrent");
            return (Criteria) this;
        }

        public Criteria andRatedcurrentLessThanOrEqualTo(Integer value) {
            addCriterion("RatedCurrent <=", value, "ratedcurrent");
            return (Criteria) this;
        }

        public Criteria andRatedcurrentIn(List<Integer> values) {
            addCriterion("RatedCurrent in", values, "ratedcurrent");
            return (Criteria) this;
        }

        public Criteria andRatedcurrentNotIn(List<Integer> values) {
            addCriterion("RatedCurrent not in", values, "ratedcurrent");
            return (Criteria) this;
        }

        public Criteria andRatedcurrentBetween(Integer value1, Integer value2) {
            addCriterion("RatedCurrent between", value1, value2, "ratedcurrent");
            return (Criteria) this;
        }

        public Criteria andRatedcurrentNotBetween(Integer value1, Integer value2) {
            addCriterion("RatedCurrent not between", value1, value2, "ratedcurrent");
            return (Criteria) this;
        }

        public Criteria andPowerIsNull() {
            addCriterion("Power is null");
            return (Criteria) this;
        }

        public Criteria andPowerIsNotNull() {
            addCriterion("Power is not null");
            return (Criteria) this;
        }

        public Criteria andPowerEqualTo(Float value) {
            addCriterion("Power =", value, "power");
            return (Criteria) this;
        }

        public Criteria andPowerNotEqualTo(Float value) {
            addCriterion("Power <>", value, "power");
            return (Criteria) this;
        }

        public Criteria andPowerGreaterThan(Float value) {
            addCriterion("Power >", value, "power");
            return (Criteria) this;
        }

        public Criteria andPowerGreaterThanOrEqualTo(Float value) {
            addCriterion("Power >=", value, "power");
            return (Criteria) this;
        }

        public Criteria andPowerLessThan(Float value) {
            addCriterion("Power <", value, "power");
            return (Criteria) this;
        }

        public Criteria andPowerLessThanOrEqualTo(Float value) {
            addCriterion("Power <=", value, "power");
            return (Criteria) this;
        }

        public Criteria andPowerIn(List<Float> values) {
            addCriterion("Power in", values, "power");
            return (Criteria) this;
        }

        public Criteria andPowerNotIn(List<Float> values) {
            addCriterion("Power not in", values, "power");
            return (Criteria) this;
        }

        public Criteria andPowerBetween(Float value1, Float value2) {
            addCriterion("Power between", value1, value2, "power");
            return (Criteria) this;
        }

        public Criteria andPowerNotBetween(Float value1, Float value2) {
            addCriterion("Power not between", value1, value2, "power");
            return (Criteria) this;
        }

        public Criteria andParknoIsNull() {
            addCriterion("ParkNo is null");
            return (Criteria) this;
        }

        public Criteria andParknoIsNotNull() {
            addCriterion("ParkNo is not null");
            return (Criteria) this;
        }

        public Criteria andParknoEqualTo(String value) {
            addCriterion("ParkNo =", value, "parkno");
            return (Criteria) this;
        }

        public Criteria andParknoNotEqualTo(String value) {
            addCriterion("ParkNo <>", value, "parkno");
            return (Criteria) this;
        }

        public Criteria andParknoGreaterThan(String value) {
            addCriterion("ParkNo >", value, "parkno");
            return (Criteria) this;
        }

        public Criteria andParknoGreaterThanOrEqualTo(String value) {
            addCriterion("ParkNo >=", value, "parkno");
            return (Criteria) this;
        }

        public Criteria andParknoLessThan(String value) {
            addCriterion("ParkNo <", value, "parkno");
            return (Criteria) this;
        }

        public Criteria andParknoLessThanOrEqualTo(String value) {
            addCriterion("ParkNo <=", value, "parkno");
            return (Criteria) this;
        }

        public Criteria andParknoLike(String value) {
            addCriterion("ParkNo like", value, "parkno");
            return (Criteria) this;
        }

        public Criteria andParknoNotLike(String value) {
            addCriterion("ParkNo not like", value, "parkno");
            return (Criteria) this;
        }

        public Criteria andParknoIn(List<String> values) {
            addCriterion("ParkNo in", values, "parkno");
            return (Criteria) this;
        }

        public Criteria andParknoNotIn(List<String> values) {
            addCriterion("ParkNo not in", values, "parkno");
            return (Criteria) this;
        }

        public Criteria andParknoBetween(String value1, String value2) {
            addCriterion("ParkNo between", value1, value2, "parkno");
            return (Criteria) this;
        }

        public Criteria andParknoNotBetween(String value1, String value2) {
            addCriterion("ParkNo not between", value1, value2, "parkno");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}